Skip to content

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented Feb 10, 2026

PR created by the Librarian CLI to generate Cloud Client Libraries code from protos.

BEGIN_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field request_id in message .google.cloud.gkehub.v1.CreateFeatureRequest is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field cancel_requested in message .google.cloud.gkehub.v1.OperationMetadata is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
feat: Add GKE Hub teams scope and RBAC GAPIC

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for message Feature is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field state in message .google.cloud.gkehub.v1.Feature is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for enum value ACTIVE in enum State is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for enum value DISABLING in enum State is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field labels in message .google.cloud.gkehub.v1.Feature is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field state in message .google.cloud.gkehub.v1.CommonFeatureState is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for enum value ENABLING in enum State is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for message CommonFeatureState is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field request_id in message .google.cloud.gkehub.v1.UpdateFeatureRequest is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field spec in message .google.cloud.gkehub.v1.Feature is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field membership_specs in message .google.cloud.gkehub.v1.Feature is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for field membership_states in message .google.cloud.gkehub.v1.Feature is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

BEGIN_NESTED_COMMIT
docs: A comment for message FeatureResourceState is changed

PiperOrigin-RevId: 865111649
Library-IDs: google-cloud-gke-hub
Source-link: googleapis/googleapis@7a570661
END_NESTED_COMMIT

END_COMMIT

This pull request is generated with proto changes between
googleapis/googleapis@33225118
(exclusive) and
googleapis/googleapis@7a570661
(inclusive).

Librarian Version: v0.7.0
Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:f5426423676c75008c2135037e7b98f78cbb99f78b3c46fe043b6897be92d836

Fixes #15525

@parthea parthea requested review from a team as code owners February 10, 2026 15:19
@snippet-bot
Copy link

snippet-bot bot commented Feb 10, 2026

Here is the summary of changes.

You are about to add 66 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @parthea, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the GKE Hub API by introducing a new set of resources and associated operations. The changes enable more granular management of GKE Fleets, including the ability to define and control Scopes, Namespaces, Membership Bindings, and RBAC Role Bindings. This expansion provides users with greater flexibility and control over their GKE environments through programmatic interfaces.

Highlights

  • New API Resources: Introduced new GKE Hub API resources including Fleets, Scopes, Namespaces, Membership Bindings, and RBAC Role Bindings to expand management capabilities.
  • Comprehensive CRUD Operations: Added a full suite of API methods for creating, retrieving, updating, and deleting the newly introduced Fleet, Scope, Namespace, Membership Binding, and RBAC Role Binding resources.
  • RBAC Management: Implemented specific functionality for managing RBAC Role Bindings within both Memberships and Scopes, including the ability to generate corresponding YAML configurations.
  • Client Library Updates: Expanded the Python client library with new types, service methods, pager classes, and comprehensive sample code to fully support the new API surface.
  • Documentation Refinements: Updated comments and descriptions across various API messages and fields to align with the new 'Fleet' terminology and enhance clarity.
Changelog
  • .librarian/state.yaml
    • Updated the last_generated_commit for the google-cloud-gke-hub library to reflect the latest code generation.
  • packages/google-cloud-gke-hub/google/cloud/gkehub/init.py
    • Added imports for new ScopeFeatureSpec, ScopeFeatureState, and various fleet types.
    • Included new service request and response messages related to Fleet, MembershipBinding, Namespace, RBACRoleBinding, and Scope operations.
    • Updated the __all__ export list to include all newly imported types.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/init.py
    • Added imports for new ScopeFeatureSpec, ScopeFeatureState, and various fleet types.
    • Included new service request and response messages related to Fleet, MembershipBinding, Namespace, RBACRoleBinding, and Scope operations.
    • Updated the __all__ export list to include all newly imported types and client classes.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/gapic_metadata.json
    • Expanded the metadata to include new RPC methods for Fleet, MembershipBinding, MembershipRBACRoleBinding, Scope, ScopeNamespace, and ScopeRBACRoleBinding operations.
    • Added entries for GenerateMembershipRBACRoleBindingYAML and ListBoundMemberships.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/pagers.py
    • Updated the import statement for google.cloud.gkehub_v1.types to include fleet.
    • Added new pager classes for listing BoundMemberships, Fleets, ScopeNamespaces, ScopeRBACRoleBindings, Scopes, PermittedScopes, MembershipBindings, and MembershipRBACRoleBindings.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/transports/base.py
    • Updated the import statement for google.cloud.gkehub_v1.types to include fleet.
    • Introduced abstract methods for new Fleet, MembershipBinding, Namespace, RBACRoleBinding, and Scope operations.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/transports/grpc.py
    • Updated the import statement for google.cloud.gkehub_v1.types to include fleet.
    • Implemented gRPC transport methods for all newly added API operations.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/transports/grpc_asyncio.py
    • Updated the import statement for google.cloud.gkehub_v1.types to include fleet.
    • Implemented asynchronous gRPC transport methods for all newly added API operations.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/services/gke_hub/transports/rest_base.py
    • Updated the import statement for google.cloud.gkehub_v1.types to include fleet.
    • Defined REST API endpoint configurations and request/response handling for all newly added API operations.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/init.py
    • Added imports for new ScopeFeatureSpec, ScopeFeatureState, and various fleet types.
    • Included new service request and response messages related to Fleet, MembershipBinding, Namespace, RBACRoleBinding, and Scope operations.
    • Updated the __all__ export list to include all newly imported types.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/feature.py
    • Imported rbacrolebindingactuation_pb2.
    • Updated comments for Feature to refer to 'Fleet Feature' instead of 'Hub Feature'.
    • Clarified comments for membership_specs and membership_states.
    • Added new fields scope_specs, scope_states, and unreachable to the Feature message.
    • Updated comments for FeatureResourceState and State enum values to use 'Fleet' terminology.
    • Added rbacrolebindingactuation field to CommonFeatureState.
    • Added new messages ScopeFeatureSpec and ScopeFeatureState.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/fleet.py
    • Added a new file defining the Fleet, DefaultClusterConfig, SecurityPostureConfig, BinaryAuthorizationConfig, CompliancePostureConfig, FleetLifecycleState, Namespace, NamespaceLifecycleState, RBACRoleBinding, RBACRoleBindingLifecycleState, Scope, ScopeLifecycleState, MembershipBinding, and MembershipBindingLifecycleState messages.
  • packages/google-cloud-gke-hub/google/cloud/gkehub_v1/types/service.py
    • Imported gcg_fleet (aliased fleet).
    • Added numerous new request/response messages for ScopeNamespace, ScopeRBACRoleBinding, Scope, MembershipBinding, MembershipRBACRoleBinding, and Fleet operations.
    • Updated ListMembershipsRequest and GetFeatureRequest to include a return_partial_success field.
    • Clarified comments for request_id in CreateFeatureRequest and UpdateFeatureRequest.
    • Updated comment for cancel_requested in OperationMetadata to reference google.longrunning.Operation.error and google.rpc.Status.code.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_fleet_async.py
    • Added a new sample for asynchronous CreateFleet operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_fleet_sync.py
    • Added a new sample for synchronous CreateFleet operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_membership_binding_async.py
    • Added a new sample for asynchronous CreateMembershipBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_membership_binding_sync.py
    • Added a new sample for synchronous CreateMembershipBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_membership_rbac_role_binding_async.py
    • Added a new sample for asynchronous CreateMembershipRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_membership_rbac_role_binding_sync.py
    • Added a new sample for synchronous CreateMembershipRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_scope_async.py
    • Added a new sample for asynchronous CreateScope operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_scope_namespace_async.py
    • Added a new sample for asynchronous CreateScopeNamespace operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_scope_namespace_sync.py
    • Added a new sample for synchronous CreateScopeNamespace operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_scope_rbac_role_binding_async.py
    • Added a new sample for asynchronous CreateScopeRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_scope_rbac_role_binding_sync.py
    • Added a new sample for synchronous CreateScopeRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_create_scope_sync.py
    • Added a new sample for synchronous CreateScope operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_fleet_async.py
    • Added a new sample for asynchronous DeleteFleet operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_fleet_sync.py
    • Added a new sample for synchronous DeleteFleet operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_membership_binding_async.py
    • Added a new sample for asynchronous DeleteMembershipBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_membership_binding_sync.py
    • Added a new sample for synchronous DeleteMembershipBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_membership_rbac_role_binding_async.py
    • Added a new sample for asynchronous DeleteMembershipRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_membership_rbac_role_binding_sync.py
    • Added a new sample for synchronous DeleteMembershipRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_scope_async.py
    • Added a new sample for asynchronous DeleteScope operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_scope_namespace_async.py
    • Added a new sample for asynchronous DeleteScopeNamespace operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_scope_namespace_sync.py
    • Added a new sample for synchronous DeleteScopeNamespace operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_scope_rbac_role_binding_async.py
    • Added a new sample for asynchronous DeleteScopeRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_scope_rbac_role_binding_sync.py
    • Added a new sample for synchronous DeleteScopeRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_delete_scope_sync.py
    • Added a new sample for synchronous DeleteScope operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_generate_membership_rbac_role_binding_yaml_async.py
    • Added a new sample for asynchronous GenerateMembershipRBACRoleBindingYAML operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_generate_membership_rbac_role_binding_yaml_sync.py
    • Added a new sample for synchronous GenerateMembershipRBACRoleBindingYAML operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_fleet_async.py
    • Added a new sample for asynchronous GetFleet operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_fleet_sync.py
    • Added a new sample for synchronous GetFleet operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_membership_binding_async.py
    • Added a new sample for asynchronous GetMembershipBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_membership_binding_sync.py
    • Added a new sample for synchronous GetMembershipBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_membership_rbac_role_binding_async.py
    • Added a new sample for asynchronous GetMembershipRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_membership_rbac_role_binding_sync.py
    • Added a new sample for synchronous GetMembershipRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_scope_async.py
    • Added a new sample for asynchronous GetScope operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_scope_namespace_async.py
    • Added a new sample for asynchronous GetScopeNamespace operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_scope_namespace_sync.py
    • Added a new sample for synchronous GetScopeNamespace operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_scope_rbac_role_binding_async.py
    • Added a new sample for asynchronous GetScopeRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_scope_rbac_role_binding_sync.py
    • Added a new sample for synchronous GetScopeRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_get_scope_sync.py
    • Added a new sample for synchronous GetScope operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_bound_memberships_async.py
    • Added a new sample for asynchronous ListBoundMemberships operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_bound_memberships_sync.py
    • Added a new sample for synchronous ListBoundMemberships operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_fleets_async.py
    • Added a new sample for asynchronous ListFleets operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_fleets_sync.py
    • Added a new sample for synchronous ListFleets operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_membership_bindings_async.py
    • Added a new sample for asynchronous ListMembershipBindings operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_membership_bindings_sync.py
    • Added a new sample for synchronous ListMembershipBindings operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_membership_rbac_role_bindings_async.py
    • Added a new sample for asynchronous ListMembershipRBACRoleBindings operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_membership_rbac_role_bindings_sync.py
    • Added a new sample for synchronous ListMembershipRBACRoleBindings operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_permitted_scopes_async.py
    • Added a new sample for asynchronous ListPermittedScopes operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_permitted_scopes_sync.py
    • Added a new sample for synchronous ListPermittedScopes operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_scope_namespaces_async.py
    • Added a new sample for asynchronous ListScopeNamespaces operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_scope_namespaces_sync.py
    • Added a new sample for synchronous ListScopeNamespaces operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_scope_rbac_role_bindings_async.py
    • Added a new sample for asynchronous ListScopeRBACRoleBindings operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_scope_rbac_role_bindings_sync.py
    • Added a new sample for synchronous ListScopeRBACRoleBindings operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_scopes_async.py
    • Added a new sample for asynchronous ListScopes operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_list_scopes_sync.py
    • Added a new sample for synchronous ListScopes operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_fleet_async.py
    • Added a new sample for asynchronous UpdateFleet operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_fleet_sync.py
    • Added a new sample for synchronous UpdateFleet operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_membership_binding_async.py
    • Added a new sample for asynchronous UpdateMembershipBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_membership_binding_sync.py
    • Added a new sample for synchronous UpdateMembershipBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_membership_rbac_role_binding_async.py
    • Added a new sample for asynchronous UpdateMembershipRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_membership_rbac_role_binding_sync.py
    • Added a new sample for synchronous UpdateMembershipRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_scope_async.py
    • Added a new sample for asynchronous UpdateScope operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_scope_namespace_async.py
    • Added a new sample for asynchronous UpdateScopeNamespace operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_scope_namespace_sync.py
    • Added a new sample for synchronous UpdateScopeNamespace operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_scope_rbac_role_binding_async.py
    • Added a new sample for asynchronous UpdateScopeRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_scope_rbac_role_binding_sync.py
    • Added a new sample for synchronous UpdateScopeRBACRoleBinding operation.
  • packages/google-cloud-gke-hub/samples/generated_samples/gkehub_v1_generated_gke_hub_update_scope_sync.py
    • Added a new sample for synchronous UpdateScope operation.
Activity
  • The pull request was automatically generated by the Librarian CLI.
  • Multiple nested commits indicate a series of changes originating from upstream proto definitions.
  • The primary activity involves adding new GKE Hub teams scope and RBAC GAPIC functionality.
  • Numerous documentation comments for various fields and messages within google.cloud.gkehub.v1 were updated across several nested commits.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request primarily updates the google-cloud-gke-hub library by regenerating its client code, as indicated by the last_generated_commit change in .librarian/state.yaml. The core changes involve introducing extensive new functionality related to GKE Hub's Fleet, Scope, Namespace, MembershipBinding, and RBACRoleBinding resources. This includes adding new type definitions for these resources and their lifecycle states in google/cloud/gkehub_v1/types/fleet.py, and updating google/cloud/gkehub/__init__.py and google/cloud/gkehub_v1/__init__.py to import and expose these new types and their associated service request/response messages. The gapic_metadata.json file is updated to reflect the new GAPIC client methods for creating, getting, updating, deleting, and listing these resources, as well as generating RBAC YAML. Correspondingly, new pager classes are added in pagers.py for paginated list operations, and the base.py, grpc.py, and grpc_asyncio.py transport implementations are extended to support the new methods. Additionally, rest_base.py gains new classes for REST API transcoding of these operations. The feature.py file is updated to include ScopeFeatureSpec and ScopeFeatureState, and to change terminology from 'Hub' to 'Fleet' in comments, along with adding rbacrolebindingactuation to CommonFeatureState and new fields for scope_specs, scope_states, and unreachable to the Feature message. The review comment suggests alphabetically sorting the symbols in the __all__ list for better maintainability and readability.

Comment on lines 32 to 40
"FeatureState",
"CommonFeatureSpec",
"CommonFeatureState",
"ScopeFeatureSpec",
"ScopeFeatureState",
"MembershipFeatureSpec",
"MembershipFeatureState",
},
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better maintainability and readability, the symbols in __all__ should be sorted alphabetically.

    "CommonFeatureSpec",
    "CommonFeatureState",
    "Feature",
    "FeatureResourceState",
    "FeatureState",
    "MembershipFeatureSpec",
    "MembershipFeatureState",
    "ScopeFeatureSpec",
    "ScopeFeatureState",

@parthea parthea merged commit 99a1284 into main Feb 10, 2026
27 checks passed
@parthea parthea deleted the librarian-20260210T151820Z branch February 10, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

librarian: generation failed for google-cloud-gke-hub

2 participants